package com.itheima02;

import java.util.Random;

public class Random01 {
    public static void main(String[] args) {
        Random r = new Random();
        //生成一个n-m的数
        //规律  int i = r.next(m-n+1)+m
        int i = r.nextInt(10) + 1;
        System.out.println(i);
    }
}
